package com.frh.demo.controller;

import com.frh.demo.pojo.DiskStability;
import com.frh.demo.service.impl.DiskStabilityServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
public class DiskStabilityController {
    @Autowired
    private DiskStabilityServiceImpl diskStabilityService;

    @RequestMapping("/disk/stability/list")
    public List<DiskStability> diskStability() {
        return diskStabilityService.getAllDiskStabilityData();
    }

}
